home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIItemStorage.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-01
|
9KB
|
297 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIItemStorage.h.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emith.dll: 2.33
*/
#ifndef SOM_HIItemStorage_h
#define SOM_HIItemStorage_h
/*
* Passthru lines: File: "C.h", "before"
*/
#include <HIObjects.h>
#include <HIImagingObjects.h>
#include <som.h>
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* Define the class name as an object type
*/
#ifndef HIItemStorage
#define HIItemStorage SOMObject
#endif
#include <somobj.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMObject
#define SOMObject SOMObject
#endif /* SOMObject */
#ifndef HIWindow
#define HIWindow SOMObject
#endif /* HIWindow */
/*
* End of user-defined types.
*/
#define HIItemStorage_MajorVersion 0
#define HIItemStorage_MinorVersion 0
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define HIItemStorageClassData d
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIItemStorage_classObj somNewClassReference(HIItemStorage)
#define _HIItemStorage HIItemStorage_classObj
#define HIItemStorageCClassData HIItemStorageClassData
#define HIItemStorageNewClass(major,minor) somNewVersionedClassReference(HIItemStorage,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIItemStorageMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/*
* Declare the class data structure
*/
SOMEXTERN struct HIItemStorageClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMAny *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken Init;
somMToken Terminate;
somMToken AddRows;
somMToken AddColumns;
somMToken DeleteRow;
somMToken DeleteColumn;
somMToken SetItemImage;
somMToken GetItemImage;
} SOMDLINK HIItemStorageClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIItemStorage_Class_Source) && !defined(SOM_Module_hiitemstorage_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIItemStorageClassData
#endif
#endif
/*
* New macro for HIItemStorage
*/
#define HIItemStorageNew() somNewObject(HIItemStorage)
/*
* New Method: Init
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_Init)(HIItemStorage *somSelf, Environment *ev);
#define somMD_HIItemStorage_Init "::HIItemStorage::Init"
#define HIItemStorage_Init(somSelf,ev) \
(SOM_Resolve(somSelf, HIItemStorage, Init) \
(somSelf,ev))
#ifndef SOMGD_Init
#if defined _Init || defined __Init
#undef _Init
#undef __Init
#define SOMGD_Init 1
#else
#define _Init HIItemStorage_Init
#endif /* _Init */
#endif /* SOMGD_Init */
/*
* New Method: Terminate
*/
typedef void (SOMLINK *somTD_HIItemStorage_Terminate)(HIItemStorage *somSelf, Environment *ev);
#define somMD_HIItemStorage_Terminate "::HIItemStorage::Terminate"
#define HIItemStorage_Terminate(somSelf,ev) \
(SOM_Resolve(somSelf, HIItemStorage, Terminate) \
(somSelf,ev))
#ifndef SOMGD_Terminate
#if defined _Terminate || defined __Terminate
#undef _Terminate
#undef __Terminate
#define SOMGD_Terminate 1
#else
#define _Terminate HIItemStorage_Terminate
#endif /* _Terminate */
#endif /* SOMGD_Terminate */
/*
* New Method: AddRows
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_AddRows)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 rowCount);
#define somMD_HIItemStorage_AddRows "::HIItemStorage::AddRows"
#define HIItemStorage_AddRows(somSelf,ev,rowIndex,rowCount) \
(SOM_Resolve(somSelf, HIItemStorage, AddRows) \
(somSelf,ev,rowIndex,rowCount))
#ifndef SOMGD_AddRows
#if defined _AddRows || defined __AddRows
#undef _AddRows
#undef __AddRows
#define SOMGD_AddRows 1
#else
#define _AddRows HIItemStorage_AddRows
#endif /* _AddRows */
#endif /* SOMGD_AddRows */
/*
* New Method: AddColumns
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_AddColumns)(HIItemStorage *somSelf, Environment *ev,
UInt32 columnIndex,
UInt32 columnCount);
#define somMD_HIItemStorage_AddColumns "::HIItemStorage::AddColumns"
#define HIItemStorage_AddColumns(somSelf,ev,columnIndex,columnCount) \
(SOM_Resolve(somSelf, HIItemStorage, AddColumns) \
(somSelf,ev,columnIndex,columnCount))
#ifndef SOMGD_AddColumns
#if defined _AddColumns || defined __AddColumns
#undef _AddColumns
#undef __AddColumns
#define SOMGD_AddColumns 1
#else
#define _AddColumns HIItemStorage_AddColumns
#endif /* _AddColumns */
#endif /* SOMGD_AddColumns */
/*
* New Method: DeleteRow
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_DeleteRow)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex);
#define somMD_HIItemStorage_DeleteRow "::HIItemStorage::DeleteRow"
#define HIItemStorage_DeleteRow(somSelf,ev,rowIndex) \
(SOM_Resolve(somSelf, HIItemStorage, DeleteRow) \
(somSelf,ev,rowIndex))
#ifndef SOMGD_DeleteRow
#if defined _DeleteRow || defined __DeleteRow
#undef _DeleteRow
#undef __DeleteRow
#define SOMGD_DeleteRow 1
#else
#define _DeleteRow HIItemStorage_DeleteRow
#endif /* _DeleteRow */
#endif /* SOMGD_DeleteRow */
/*
* New Method: DeleteColumn
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_DeleteColumn)(HIItemStorage *somSelf, Environment *ev,
UInt32 columnIndex);
#define somMD_HIItemStorage_DeleteColumn "::HIItemStorage::DeleteColumn"
#define HIItemStorage_DeleteColumn(somSelf,ev,columnIndex) \
(SOM_Resolve(somSelf, HIItemStorage, DeleteColumn) \
(somSelf,ev,columnIndex))
#ifndef SOMGD_DeleteColumn
#if defined _DeleteColumn || defined __DeleteColumn
#undef _DeleteColumn
#undef __DeleteColumn
#define SOMGD_DeleteColumn 1
#else
#define _DeleteColumn HIItemStorage_DeleteColumn
#endif /* _DeleteColumn */
#endif /* SOMGD_DeleteColumn */
/*
* New Method: SetItemImage
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_SetItemImage)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
ConstHIImageRef imageRef,
HIAdoptionFlags imageAdoptionFlags);
#define somMD_HIItemStorage_SetItemImage "::HIItemStorage::SetItemImage"
#define HIItemStorage_SetItemImage(somSelf,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags) \
(SOM_Resolve(somSelf, HIItemStorage, SetItemImage) \
(somSelf,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags))
#ifndef SOMGD_SetItemImage
#if defined _SetItemImage || defined __SetItemImage
#undef _SetItemImage
#undef __SetItemImage
#define SOMGD_SetItemImage 1
#else
#define _SetItemImage HIItemStorage_SetItemImage
#endif /* _SetItemImage */
#endif /* SOMGD_SetItemImage */
/*
* New Method: GetItemImage
*/
typedef OSStatus (SOMLINK *somTD_HIItemStorage_GetItemImage)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
HIImageRef* imageRefPtr);
#define somMD_HIItemStorage_GetItemImage "::HIItemStorage::GetItemImage"
#define HIItemStorage_GetItemImage(somSelf,ev,rowIndex,columnIndex,imageRefPtr) \
(SOM_Resolve(somSelf, HIItemStorage, GetItemImage) \
(somSelf,ev,rowIndex,columnIndex,imageRefPtr))
#ifndef SOMGD_GetItemImage
#if defined _GetItemImage || defined __GetItemImage
#undef _GetItemImage
#undef __GetItemImage
#define SOMGD_GetItemImage 1
#else
#define _GetItemImage HIItemStorage_GetItemImage
#endif /* _GetItemImage */
#endif /* SOMGD_GetItemImage */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define HIItemStorage_somInit SOMObject_somInit
#define HIItemStorage_somUninit SOMObject_somUninit
#define HIItemStorage_somDuplicateReference SOMObject_somDuplicateReference
#define HIItemStorage_somCompareReference SOMObject_somCompareReference
#define HIItemStorage_somRelease SOMObject_somRelease
#define HIItemStorage_somFree SOMObject_somFree
#define HIItemStorage_somCanDelete SOMObject_somCanDelete
#define HIItemStorage_somGetClass SOMObject_somGetClass
#define HIItemStorage_somGetClassName SOMObject_somGetClassName
#define HIItemStorage_somGetSize SOMObject_somGetSize
#define HIItemStorage_somIsA SOMObject_somIsA
#define HIItemStorage_somRespondsTo SOMObject_somRespondsTo
#define HIItemStorage_somIsInstanceOf SOMObject_somIsInstanceOf
#define HIItemStorage_somDispatch SOMObject_somDispatch
#define HIItemStorage_somClassDispatch SOMObject_somClassDispatch
#define HIItemStorage_somCastObj SOMObject_somCastObj
#define HIItemStorage_somResetObj SOMObject_somResetObj
#define HIItemStorage_somPrintSelf SOMObject_somPrintSelf
#define HIItemStorage_somDumpSelf SOMObject_somDumpSelf
#define HIItemStorage_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_HIItemStorage_h */